const TiHome = require('./tigear/TiHome.js');
const userId = "your user id";
const accessKey = "your access key";

const productId = "5POpr2bk2g";
// app.js
App({

  onLaunch() {
    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })
  },
  globalData: {
    userInfo: null,
    tihome : new TiHome(userId, accessKey, productId),
  }
})
